package com.iteye.trafficRecorder;

public class User {
	
	private int userId;
	
	private String guid;
	
	private String userName;
	
	private String phoneNumber;
	
	private String carNumber;
	
	private String deviceInfo;
	
	private String deviceType;
	
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getCarNumber() {
		return carNumber;
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}

	public String getDeviceInfo() {
		return deviceInfo;
	}

	public void setDeviceInfo(String deviceInfo) {
		this.deviceInfo = deviceInfo;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
	
	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String toXml() {
		StringBuffer sb = new StringBuffer();
		sb.append("<Document TaskGuid = \""+WebService.taskGuid+"\" DataGuid = \""+guid+"\" DataType=\""+WebService.dataType_mobile_info+"\">");
		sb.append("  <Guid Type=\"GUID\">"+guid+"</Guid>");
		sb.append("  <PhoneNum Type=\"TEXT\">"+phoneNumber+"</PhoneNum>");
		sb.append("  <PlateNumber Type=\"TEXT\">"+carNumber+"</PlateNumber>");
		sb.append("  <UserName Type=\"TEXT\">"+userName+"</UserName>");
		sb.append("  <MobileModel Type=\"TEXT\">"+deviceType+"</MobileModel>");
		sb.append("  <Hardware Type=\"TEXT\">"+deviceType+"</Hardware>");
		sb.append("  <Description Type=\"TEXT\"></Description>");
		sb.append("</Document>");
		return sb.toString();
	}
}
